const express = require("express");
const { createServer } = require("http");
const { mountMiddleWare } = require("./src/middleWare");
const mountRouter = require("./src/routers");
const mountSocket = require("./src/socket");
// require("./src/redis");
const app = express();
const httpServer = createServer(app);
const { Server } = require("socket.io");
mountMiddleWare(app);
mountRouter(app);
mountSocket(httpServer);
app.get("/", (req, res) => {
  res.send("/public/index.html");
});


console.log(new Buffer('asdsadsa','base64'),'111111111');
httpServer.listen(3000, () => {
  console.log("server listening on port 3000");
});
